package com.ruoyi.system.service.impl.smy;

import com.ruoyi.common.core.domain.smy.MallOrderDetail;
import com.ruoyi.system.mapper.smy.MallOrderDetailMapper;
import com.ruoyi.system.service.smy.IMallOrderDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MallOrderDetailServiceImpl implements IMallOrderDetailService {
	@Resource
	private MallOrderDetailMapper mallOrderDetailMapper;

	@Override
	public MallOrderDetail selectMallOrderDetailById(Long id) {
		return mallOrderDetailMapper.selectMallOrderDetailById(id);
	}

	@Override
	public List<MallOrderDetail> selectMallOrderDetailList(MallOrderDetail mallOrderDetail) {
		return mallOrderDetailMapper.selectMallOrderDetailList(mallOrderDetail);
	}

	@Override
	public int insertMallOrderDetail(MallOrderDetail mallOrderDetail) {
		return mallOrderDetailMapper.insertMallOrderDetail(mallOrderDetail);
	}

	@Override
	public int updateMallOrderDetail(MallOrderDetail mallOrderDetail) {
		return mallOrderDetailMapper.updateMallOrderDetail(mallOrderDetail);
	}

	@Override
	public int deleteMallOrderDetailByIds(Long[] ids) {
		return mallOrderDetailMapper.deleteMallOrderDetailByIds(ids);
	}

	@Override
	public int deleteMallOrderDetailById(Long id) {
		return mallOrderDetailMapper.deleteMallOrderDetailById(id);
	}
}
